﻿package Message.Public
{
    import Framework.MQ.*;
    import Framework.Serialize.*;

    public class SGuildWarInfo extends IMessageBase
    {
        public var isOpen:Boolean;
        public var hasSignUp:Boolean;
        public var guildSignUp:int;
        public var star:Number;
        public const _type:int = 5096;
        public static var _regist:SGuildWarInfo = new SGuildWarInfo(true);

        public function SGuildWarInfo(param1:Boolean = false)
        {
            if (param1)
            {
                MessageManager.instance().regist(this);
            }
            return;
        }// end function

        override public function getType() : int
        {
            return this._type;
        }// end function

        override public function clone() : IMessageBase
        {
            return new SGuildWarInfo();
        }// end function

        override public function __write(param1:SerializeStream) : void
        {
            param1.writeBool(this.isOpen);
            param1.writeBool(this.hasSignUp);
            param1.writeInt(this.guildSignUp);
            param1.writeDouble(this.star);
            return;
        }// end function

        override public function __read(param1:SerializeStream) : void
        {
            this.isOpen = param1.readBool();
            this.hasSignUp = param1.readBool();
            this.guildSignUp = param1.readInt();
            this.star = param1.readDouble();
            return;
        }// end function

    }
}
